import { createApp } from 'vue'
import i18n from '@/i18n'
import App from './App.vue'
import router from './router'
import store from './store'
import './style/index.scss'
import installElementPlus from './plugins/element'
// import ElementPlus from 'element-plus'
// import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
// import * as icons from '@element-plus/icons'
// 导入 svgIcon
import installIcons from '@/icons'
import installDirectives from '@/directives'
// import installFilter from '@filters'

const app = createApp(App)
// Object.keys(icons).forEach((key) => {
//   app.component(key, icons[key])
// })
installElementPlus(app)
installIcons(app)
// installFilter(app)
app.use(store)
app.use(router)
app.use(i18n)
installDirectives(app)
// app.use(ElementPlus, {
//   locale: zhCn
// })
app.mount('#app')
